package io.zw.modules.xinpai.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.zw.common.utils.PageUtils;
import io.zw.common.utils.Query;

import io.zw.modules.xinpai.dao.CarDataDao;
import io.zw.modules.xinpai.entity.CarDataEntity;
import io.zw.modules.xinpai.service.CarDataService;


@Service("carDataService")
public class CarDataServiceImpl extends ServiceImpl<CarDataDao, CarDataEntity> implements CarDataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<CarDataEntity> page = this.selectPage(
                new Query<CarDataEntity>(params).getPage(),
                new EntityWrapper<CarDataEntity>()
        );

        return new PageUtils(page);
    }

}
